package com.windgo.controller.wx;

import com.windgo.bean.bo.UserDataBo;

import com.windgo.bean.bo.WxUserIndexBo;
import com.windgo.bean.common.BaseRespVo;
import com.windgo.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;

/**前台个人用户相关信息的显示
 * @author wuwen
 * @since 2022/10/14
 * 22:31
 */
@RestController
@RequestMapping("wx/user")
public class WxUserController {
    @Autowired
   // UserService userService;
    OrderService orderService;
    @RequestMapping("index")
    public BaseRespVo index(){
        WxUserIndexBo order = orderService.count();
        UserDataBo data = new UserDataBo(order);
        return BaseRespVo.ok(data);
    }
}

